package com.boot.service.impl;

import com.boot.domain.*;
import com.boot.mapper.*;
import com.boot.service.SecondService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SecondServiceImpl implements SecondService {

	
	
	@Autowired
    private	MeteringMapper meteringMapper;
	
	@Autowired
    private	MeteringCoveMapper meteringCoveMapper;


	@Autowired
	private MeteringNumMapper meteringNumMapper;

	@Autowired
	private MeteringRateMapper meteringRateMapper;

	@Autowired
	private StandardMapper standardMapper;
	@Autowired
	private StandardNewMapper standardNewMapper;

	@Autowired
	private StandardZoneMapper standardZoneMapper;


	@Autowired
	private CheckMapper checkMapper;

	@Autowired
	private CheckCoveMapper checkCoveMapper;






	@Autowired
	private AuthenticationMapper authenticationMapper;


	@Autowired
	private AuthenticationCoveMapper authenticationCoveMapper;

	@Autowired
	private AuthenticationTypeMapper authenticationTypeMapper;




	@Override
	public List<Metering> getMeterings() {
		return meteringMapper.selectAll();
	}


	@Override
	public List getZoneMeterings(String meteringid) {
		return meteringRateMapper.selectByZoneAndMetering(meteringid);
	}


	@Override
	public List<MeteringCove>  getMeteringCoves(){
		return meteringCoveMapper.selectAll();
	}

	@Override
	public List<MeteringNum> getMeteringNum() { return meteringNumMapper.selectAll(); }

	@Override
	public List<Standard> getStandard() {
		return standardMapper.selectAll();
	}

	@Override
	public List<StandardNew> getStandardNew() {
		return standardNewMapper.selectAll();
	}

	@Override
	public List<StandardZone> getStandardZone() {
		return standardZoneMapper.selectAll();
	}

	@Override
	public List<Check> getCheck() {
		return checkMapper.selectAll();
	}

	@Override
	public List<CheckCove> getCheckCove() {
		return checkCoveMapper.selectAll();
	}

	@Override
	public List<Authentication> getAuthentication() {
		return authenticationMapper.selectAll();
	}

	@Override
	public List<AuthenticationCove> getAuthenticationCove() {
		return authenticationCoveMapper.selectAll();
	}

	@Override
	public List<AuthenticationType> getAuthenticationType() {
		return authenticationTypeMapper.selectAll();
	}


}
